package com.netty.nettyserver.config;

import com.netty.nettyserver.client.NettyClient;
import com.netty.nettyserver.model.IStudentService;
import com.netty.nettyserver.others.MethodInvokeMeta;

/**
 * @author shengtao
 * @Description:
 * @date 2018/09/20 17:49
 */
public class NettyClientConfig {

    public static void main(String[] args){
        NettyClient nettyClient = new NettyClient("127.0.0.1",11111);
        MethodInvokeMeta invokeMeta = new MethodInvokeMeta();
        invokeMeta.setInterfaceClass(IStudentService.class);
        invokeMeta.setMethodName("helloWorld");
        invokeMeta.setParameterTypes(null);
        invokeMeta.setReturnType(String.class);
        nettyClient.remoteCall(invokeMeta,2);
    }

}
